<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="head.htm"/>
</head>
<body>
	<div id="head"><h1>Route hinzufügen</h1></div>
	<jsp:include page="menu.jsp"/>
	<div id="content">
		<h2><c:out value="${title}"/></h2>
		<p><c:out value="${message}"/></p>
		<form method="post" action="SaveRoute.html">
			<table class="editing">
				<colgroup>
					<col class="attribute"/>
					<col class="value"/>
				</colgroup>
				<tbody>
					<tr>
						<td>Name der Route:</td>
						<td>
							<input type="hidden" name="routeid" value='<c:out value="${route.routeid}"/>'/>
							<input type="text" name="name" value='<c:out value="${route.name}"/>' size="50" />
						</td>
					</tr>
					<tr>
						<td>Ort:</td>
						<td>
						<p>
						<br>
						</br>
						<sub>
								<c:forEach items="${orte}" var="ort">
								
									<input type="radio" name="ortid" checked value='<c:out value="${ort.orteid}"/>'/>
									<c:out value="${ort.stadt}"/>
						
								</c:forEach>	
						
						</sub>
						
						</p>
						</td>
					</tr>
						<tr>
						
						<td>Physis der Route (T1 bis T6):</td>
	
					<td> 
							<input type="radio" name="physis" value='1'/>1
							<input type="radio" name="physis" value='2'/>2
   							<input type="radio" name="physis" value='3'/>3
   							<input type="radio" name="physis" value='4'/>4
    						<input type="radio" name="physis" value='5'/>5
   							<input type="radio" name="physis" value='6'/>6
   																			 </td>
						<% 
							session.setAttribute("bewertung.physis", request.getParameter("physis") );
						%>
	
						</tr>
						
					
					<tr>
								<td>Technik der Route (T1 bis T6):</td>
	
						<td> 
							<input type="radio" name="technik" value='1'/>1
							<input type="radio" name="technik" value='2'/>2
   							<input type="radio" name="technik" value='3'/>3
   							<input type="radio" name="technik" value='4'/>4
    						<input type="radio" name="technik" value='5'/>5
   							<input type="radio" name="technik" value='6'/>6
    																			</td>
						<% 
							session.setAttribute("bewertung.technik", request.getParameter("technik") );
						%>
	
					</tr>
					
					<tr>
					
						<td>Landschaft der Route (T1 bis T6):</td>
	
	
					<td>
							 <input type="radio" name="landschaft" value='1'/>1
							 <input type="radio" name="landschaft" value='2'/>2
   							 <input type="radio" name="landschaft" value='3'/>3
   							 <input type="radio" name="landschaft" value='4'/>4
  							 <input type="radio" name="landschaft" value='5'/>5
   							 <input type="radio" name="landschaft" value='6'/>6
   																					 </td>
						<% 
							session.setAttribute("bewertung.landschaft", request.getParameter("landschaft") );
						%>

					</tr>
					
					
					<tr>
						<td>Kommentar zur Bewertung:</td>
						<td>
							<input type="text" name="kommentar" value='<c:out value="${Bewertung.kommentar}"/>' size =85/>
						</td>
					</tr>
					
					<tr>
						<td>Streckenlänge der Route in KM: </td>
						<td>
							<input type="text" name="strecke" value='<c:out value="${route.strecke}"/>'/>
						</td>
					</tr>
					
					<tr>
						<td>Kurzbeschreibung der Route:        (max. 80 Zeilen)</td>
						<td>
							<input type="text" name="kurztxt" value='<c:out value="${route.kurztxt}"/>' size = 85 maxlength=80/>
						</td>
						
					</tr>
					
					<tr>
						<td>Langbeschreibung der Route:</td>
						<td>
							<input type="text" name="langtxt" value='<c:out value="${route.langtxt}"/>' size = 200/>
						</td>
					</tr>
						
					<tr>
						<td>URL des Bildes: </td>
						<td>
							<input type="text" name="url" value='<c:out value="${bilder.url}"/>' size = 75/>
						</td>
					</tr>
					
				
					<tr class="submit">
						<td colspan="2">
								<input type="submit" value=" Änderungen übernehmen "/>
						</td>
					</tr>
				</tbody>
			</table>
		</form>
	</div>
</body>
</html>